﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RSSSet.aspx.cs" Inherits="GreatB2C.Web.Manage.SystemSet.SiteInfo.RSSSet" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>RSS/WAP参数配置</title>
    <link href="../../../App_Themes/AdminDefaultTheme/Guide.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/index.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/MasterPage.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/xtree.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript" src="../../../Resource/Script/jquery-1.4.2.min.js"></script>

    <script src="../../../Resource/Script/jquery.validate.min.js" type="text/javascript"></script>

    <script type="text/javascript">
        $().ready(function() {
            // validate signup form on keyup and submit
            $("#form1").validate({
                rules: {
                    txtSiteName: {
                        required: true
                    },
                    txtSiteTitle: {
                        required: true
                    }
                },
                messages: {
                    txtSiteName: {
                        required: "<font class='validatemsg'>* 请输入网站名称</font>"
                    },
                    txtSiteTitle: {
                        required: "<font class='validatemsg'>* 请输入网站标题</font>"
                    }
                }
            });

        });
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="2" cellspacing="1" class="border">
        <tr align="center">
            <td colspan="2" class="spacingtitle">
                <strong>RSS/WAP参数配置</strong>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft" style="width: 50%">
                <strong>是否启用RSS功能：</strong>
            </td>
            <td>
                <asp:RadioButtonList ID="radlRssEnable" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Value="1">是</asp:ListItem>
                    <asp:ListItem Value="0">否</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>是否启用WAP功能：</strong>
            </td>
            <td>
                <asp:RadioButtonList ID="radlWapEnable" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Value="1">是</asp:ListItem>
                    <asp:ListItem Value="0">否</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>是否开启WAP单独域名：</strong><br />
            </td>
            <td>
                <asp:RadioButtonList ID="radlWapSiteStatus" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow">
                    <asp:ListItem Value="1">是</asp:ListItem>
                    <asp:ListItem Value="0">否</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>WAP域名：</strong>
            </td>
            <td>
                <asp:TextBox ID="txtWapSiteUrl" runat="server" Columns="30" CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                例如：http://wap.baidu.com/
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>生成WAP图片的大小（单位px）：</strong>
            </td>
            <td>
                高：<asp:TextBox ID="txtImageHeight" runat="server" Columns="30" Width="50px" CssClass="inputtext" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
                宽：<asp:TextBox ID="txtImageWidth" runat="server" Columns="30" Width="50px" CssClass="inputtext" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';"></asp:TextBox>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>生成WAP图片的方式：</strong>
            </td>
            <td>
                <asp:DropDownList ID="ddlThumbsMode" runat="server">
                    <asp:ListItem Text="指定高宽缩放" Value="0"></asp:ListItem>
                    <asp:ListItem Text="指定宽，高按比例" Value="1"></asp:ListItem>
                    <asp:ListItem Text="指定高，宽按比例" Value="2" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="指定高宽裁减" Value="3"></asp:ListItem>
                    <asp:ListItem Text="补充法指定宽高" Value="4"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr class="tdbgbottom">
            <td colspan="2">
                <asp:Button ID="BtnSubmit" runat="server" Text="保存设置[S]" class="btnstyle_blue" Style="width: 90px;"
                    AccessKey="S" onmouseover="this.className='btnstyle_blue_over'" onmouseout="this.className='btnstyle_blue'"
                    OnClick="BtnSubmit_Click" />&nbsp;&nbsp;
                <input type="reset" name="ClearSiteInfo" value="重 填[R]" class="btnstyle_blue" id="btnSiteInfoReset"
                    accesskey="R" style="width: 70px;" runat="server" onmouseover="this.className='btnstyle_blue_over'"
                    onmouseout="this.className='btnstyle_blue'" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
